package com.wudi.ConcreteFactory;

import com.wudi.*;
import com.wudi.ConcreteProduct.Apple.ConcreteProductAppleEarphone;
import com.wudi.ConcreteProduct.Apple.ConcreteProductAppleLaptop;
import com.wudi.ConcreteProduct.Apple.ConcreteProductApplePad;
import com.wudi.ConcreteProduct.Apple.ConcreteProductApplePhone;


public class FactoryApple implements IAbstractFactory {
    @Override
    public AbstractProductPhone createProductPhone() {
        return new ConcreteProductApplePhone();
    }

    @Override
    public AbstractProductLaptop createProductLaptop() {
        return new ConcreteProductAppleLaptop();
    }

    @Override
    public AbstractProductPad createProductPad() {
        return new ConcreteProductApplePad();
    }

    @Override
    public AbstractProductEarphone createProductEarphone() {
        return new ConcreteProductAppleEarphone();
    }
}
